//
//  InviteFriendSuceessViewController.swift
//  SmartHousekeeper
//
//  Created by 张磊 on 2020/2/22.
//  Copyright © 2020 LS. All rights reserved.
//

import UIKit
//邀请客人进入小区预约登记-------成功

class InviteFriendSuceessViewController: UIViewController {

    let inviteFriendSuccessView = InviteFriendSuccessView()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        setUI()
        
    }
   
    func setUI() {
     
        self.view.backgroundColor = .white
        self.view.addSubview(inviteFriendSuccessView)
        inviteFriendSuccessView.snp.makeConstraints { (make) in
            make.edges.equalToSuperview()
        }
        inviteFriendSuccessView.sendWXBlcok = {
            print("发微信")
            let vc = ShareSuccessViewController()
            self.navigationController?.pushViewController(vc, animated: true)
        }
        inviteFriendSuccessView.sendFriendBlcok = {
            print("发朋友")
            let vc = ShareSuccessViewController()
            self.navigationController?.pushViewController(vc, animated: true)
        }
        inviteFriendSuccessView.popRootBlcok = {
            self.navigationController?.popToRootViewController(animated: true)
        }
    }
   
}
